package com.xtedu.examproject.entity;

import java.io.Serializable;
import java.sql.Date;
import java.time.LocalDate;

public class StudentExamRecord implements Serializable {
    private int id;
    private int studentId;
    private int examId;
    private int classId;
    private float theoryScore;
    private float practiceScore;
    private boolean examResult;
    private Date createDate;

    public StudentExamRecord(int id, int studentId, int examId, int classId, float theoryScore, float practiceScore, boolean examResult, Date createDate) {
        this.id = id;
        this.studentId = studentId;
        this.examId = examId;
        this.classId = classId;
        this.theoryScore = theoryScore;
        this.practiceScore = practiceScore;
        this.examResult = examResult;
        this.createDate = createDate;
    }

    public StudentExamRecord() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getStudentId() {
        return studentId;
    }

    public void setStudentId(int studentId) {
        this.studentId = studentId;
    }

    public int getExamId() {
        return examId;
    }

    public void setExamId(int examId) {
        this.examId = examId;
    }

    public int getClassId() {
        return classId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

    public float getTheoryScore() {
        return theoryScore;
    }

    public void setTheoryScore(float theoryScore) {
        this.theoryScore = theoryScore;
    }

    public float getPracticeScore() {
        return practiceScore;
    }

    public void setPracticeScore(float practiceScore) {
        this.practiceScore = practiceScore;
    }

    public boolean isExamResult() {
        return examResult;
    }

    public void setExamResult(boolean examResult) {
        this.examResult = examResult;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    @Override
    public String toString() {
        return "StudentExamRecord [id" + id + ", studentId" + studentId + ", examId" + examId + ", classId" + classId + ", theoryScore" + theoryScore + ", practiceScore" + practiceScore + ", examResult" + examResult + ", createDate" + createDate + "]";
    }
}
